import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

// 养护辅助决策
const auxiliaryDecision = {
    path: '/auxiliary-decision',
    component: Layout,
    name: 'AuxiliaryDecision',
    meta: {
        title: '养护辅助决策',
        code: 'dlyh_r_a10_1'
    },
    redirect: '/auxiliary-decision/decision-model/scheme-price/index',
    children: [
        {
            path: 'decision-model',
            component: LayoutInset,
            name: 'DecisionModel',
            meta: {
                title: '决策模型',
                iconSvg: 'decision-model',
                code: 'dlyh_a9_b26_1'
            },
            redirect: '/auxiliary-decision/decision-model/scheme-price/index',
            children: [{
                path: 'scheme-price',
                name: 'SchemePrice',
                meta: {
                    title: '典型养护方案及单价',
                    code: 'dlyh_b26_c52_1'
                },
                component: LayoutInset,
                redirect: '/auxiliary-decision/decision-model/scheme-price/index',
                children: [{
                    path: 'index',
                    name: 'SchemePriceIndex',
                    meta: {
                        title: '列表',
                        details: []
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/scheme-price/index'),
                    hide: true
                }]
            },
            {
                path: 'performance-prediction',
                name: 'PerformancePrediction',
                meta: {
                    title: '性能预测模型库',
                    code: 'dlyh_b26_c53_1'
                },
                component: LayoutInset,
                redirect: '/auxiliary-decision/decision-model/performance-prediction/index',
                children: [{
                    path: 'index',
                    name: 'PerformancePredictionIndex',
                    meta: {
                        title: '列表',
                        componentName: 'PerformancePredictionList',
                        details: ['ParameterMaintenance']
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/performance-prediction/index'),
                    hide: true
                },
                {
                    path: 'parameter-maintenance',
                    name: 'ParameterMaintenance',
                    meta: {
                        title: '模型参数维护',
                        activeMenu: '/auxiliary-decision/decision-model/performance-prediction/index'
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/performance-prediction/parameter-maintenance/index'),
                    hide: true
                }
                ]
            },
            {
                path: 'priority-ordering',
                name: 'PriorityOrdering',
                meta: {
                    title: '优先排序模型',
                    code: 'dlyh_b26_c54_1'
                },
                component: LayoutInset,
                redirect: '/auxiliary-decision/decision-model/priority-ordering/index',
                children: [{
                    path: 'index',
                    name: 'PriorityOrderingIndex',
                    meta: {
                        title: '列表',
                        details: []
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/priority-ordering/index'),
                    hide: true
                }]
            },
            {
                path: 'road-conditions',
                name: 'roadConditions',
                meta: {
                    title: '维修后路况标准',
                    code: 'dlyh_b26_c56_1'
                },
                component: LayoutInset,
                redirect: '/auxiliary-decision/decision-model/road-conditions/index',
                children: [{
                    path: 'index',
                    name: 'RoadConditionsIndex',
                    meta: {
                        title: '列表',
                        details: []
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/road-conditions/index'),
                    hide: true
                },
                {
                    path: 'add',
                    name: 'RoadConditionsAdd',
                    meta: {
                        title: '新增',
                        activeMenu: '/auxiliary-decision/decision-model/road-conditions/index'
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/road-conditions/add/index'),
                    hide: true
                },
                {
                    path: 'edit',
                    name: 'RoadConditionsEdit',
                    meta: {
                        title: '编辑',
                        activeMenu: '/auxiliary-decision/decision-model/road-conditions/index'
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/road-conditions/add/index'),
                    hide: true
                }
                ]
            },
            {
                path: 'maintain-decision',
                name: 'maintainDecision',
                meta: {
                    title: '养护决策模型',
                    code: 'dlyh_b26_c55_1'
                },
                component: LayoutInset,
                redirect: '/auxiliary-decision/decision-model/maintain-decision/index',
                children: [{
                    path: 'index',
                    name: 'MaintainDecisionIndex',
                    meta: {
                        title: '列表',
                        details: []
                    },
                    component: () => import('@/views/auxiliary-decision/decision-model/maintain-decision/index'),
                    hide: true
                }]
            },
            ]
        },
        {
            path: 'decision-data',
            component: LayoutInset,
            name: 'DecisionData',
            meta: {
                title: '决策数据',
                iconSvg: 'decision-data',
                code: 'dlyh_a9_b25_1'
            },
            redirect: '/auxiliary-decision/decision-data/maintenance-record/index',
            children: [
                {
                    path: 'maintenance-record',
                    name: 'DecisionDataMaintenanceRecord',
                    meta: {
                        title: '路面养护维修记录',
                        code: 'dlyh_b25_c49_1'
                    },
                    component: LayoutInset,
                    redirect: '/auxiliary-decision/decision-data/maintenance-record/index',
                    children: [
                        {
                            path: 'index',
                            name: 'RoadIndex',
                            meta: {
                                title: '列表',
                                details: []
                            },
                            component: () => import('@/views/auxiliary-decision/decision-data/maintenance-record/index'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'road-section-select',
                    name: 'RoadSectionSelect',
                    meta: {
                        title: '分析路段选择',
                        code: 'dlyh_b25_c50_1'
                    },
                    component: LayoutInset,
                    redirect: '/auxiliary-decision/decision-data/road-section-select/index',
                    children: [
                        {
                            path: 'index',
                            name: 'RoadSectionSelectIndex',
                            meta: {
                                title: '列表',
                                details: []
                            },
                            component: () => import('@/views/auxiliary-decision/decision-data/road-section-select/index'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'decision-item',
                    name: 'DecisionItem',
                    meta: {
                        title: '决策项目',
                        code: 'dlyh_b25_c51_1'
                    },
                    component: LayoutInset,
                    redirect: '/auxiliary-decision/decision-data/decision-item/index',
                    children: [
                        {
                            path: 'index',
                            name: 'DecisionItemIndex',
                            meta: {
                                title: '列表',
                                details: []
                            },
                            component: () => import('@/views/auxiliary-decision/decision-data/decision-item/index'),
                            hide: true
                        }
                    ]
                }
            ]
        },
        {
            path: 'curing-analysis',
            component: LayoutInset,
            name: 'CuringAnalysis',
            meta: {
                title: '养护分析',
                iconSvg: 'curing-analysis',
                code: 'dlyh_a9_b27_1'
            },
            redirect: '/auxiliary-decision/curing-analysis/performance-forecast/index',
            children: [
                {
                    path: 'performance-forecast',
                    name: 'PerformanceForecast',
                    meta: {
                        title: '路面性能预测',
                        code: 'dlyh_b26_c57_1'
                    },
                    component: LayoutInset,
                    redirect: '/auxiliary-decision/curing-analysis/performance-forecast/index',
                    children: [
                        {
                            path: 'index',
                            name: 'PerformanceForecastIndex',
                            meta: {
                                title: '列表',
                                details: []
                            },
                            component: () => import('@/views/auxiliary-decision/curing-analysis/performance-forecast/index'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'demand-analysis',
                    name: 'DemandAnalysis',
                    meta: {
                        title: '养护需求分析',
                        code: 'dlyh_b26_c58_1'
                    },
                    component: LayoutInset,
                    redirect: '/auxiliary-decision/curing-analysis/demand-analysis/index',
                    children: [
                        {
                            path: 'index',
                            name: 'DemandAnalysisIndex',
                            meta: {
                                title: '列表',
                                details: []
                            },
                            component: () => import('@/views/auxiliary-decision/curing-analysis/demand-analysis/index'),
                            hide: true
                        },
                    ]
                },
                {
                    path: 'decision-report',
                    name: 'DecisionReport',
                    meta: {
                        title: '养护决策报告',
                        code: 'dlyh_b26_c59_1'
                    },
                    component: LayoutInset,
                    redirect: '/auxiliary-decision/curing-analysis/decision-report/index',
                    children: [
                        {
                            path: 'index',
                            name: 'DecisionReportIndex',
                            meta: {
                                title: '列表',
                                details: []
                            },
                            component: () => import('@/views/auxiliary-decision/curing-analysis/decision-report/index'),
                            hide: true
                        }
                    ]
                }
            ]
        },

    ]
}
export default auxiliaryDecision
